<div class="view">
    <table class="view">
        <tr>
            <td>
                <b><?php echo CHtml::encode($data->getAttributeLabel('name')); ?>:</b>
                <?php echo CHtml::link(CHtml::encode($data->name), array('view', 'id' => $data->book_id)); ?>
                <br />

                <b><?php echo CHtml::encode($data->getAttributeLabel('author')); ?>:</b>
                <?php echo CHtml::encode($data->author); ?>
                <br />

                <b><?php echo CHtml::encode($data->getAttributeLabel('description')); ?>:</b>
                <?php echo CHtml::encode($data->description); ?>
                <br />

                <b><?php echo CHtml::encode($data->getAttributeLabel('isbn')); ?>:</b>
                <?php echo CHtml::encode($data->isbn); ?>
                <br />
            </td>
            <td id="picture">
                <b><?php echo CHtml::image($data->picture_url, $data->picture_url, array('height' => '200px')); ?></b><br />                   
            </td>
        </tr>
        <tr>
            <td colspan="2" id="picture">
                <?php
                $this->widget('zii.widgets.jui.CJuiButton', array(
                    'buttonType' => 'button', //megadjuk a gomb típusát (pl. link, button)
                    'name' => 'btnInfo' . $data->book_id, //megadjuk a gomb nevét
                    'caption' => 'Info', //megadjuk, hogy mi legyen a gomb felirata
                    'onclick' => 'js:function(){bookInfo("' . Yii::app()->createUrl('book/info', array('id' => $data->book_id)) . '", ' . $data->book_id . ')}', //meghívjuk a bookInfo javascript függvényt
                ))
                ?>
            </td>
        </tr>
    </table>
    <?php /*
      <b><?php echo CHtml::encode($data->getAttributeLabel('date_updated')); ?>:</b>
      <?php echo CHtml::encode($data->date_updated); ?>
      <br />

      <b><?php echo CHtml::encode($data->getAttributeLabel('date_created')); ?>:</b>
      <?php echo CHtml::encode($data->date_created); ?>
      <br />

     */ ?>

</div>